﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="HouseHoldingRun.cs" company="DST Nexdox">
//   Copyright (c) DST Nexdox. All rights reserved.
// </copyright>
// <summary>
//   Defines the HouseHoldingRun type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Entities
{
  using System;
  using System.Collections.Generic;
  using Microsoft.Build.Framework;

  public class HouseHoldingRun
  {
    public HouseHoldingRun()
    {
      this.HouseHolds = new List<HouseHold>();
      this.GridRuns = new List<GridRun>();
    }

    public HouseHoldingRun(DateTime started, DateTime ended, String grid)
      : this()
    {
      this.Grid = grid;
      this.StartDate = started;
      this.EndDate = ended;
    }

    public Int32 Id { get; set; }

    [Required]
    public String Grid { get; set; }

    [Required]
    public DateTime StartDate { get; set; }

    [Required]
    public DateTime EndDate { get; set; }

    public virtual ICollection<HouseHold> HouseHolds { get; set; }

    public virtual ICollection<GridRun> GridRuns { get; set; }
  }
}
